package com.tjetc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("care_record")
public class CareRecord {
    @TableId(value = "care_id", type = IdType.AUTO)
    private Long careId;

    @TableField("elderly_id")
    private Long elderlyId;

    @TableField(exist = false)
    private ElderInfo elderly;

    @TableField("caregiver_id")
    private Long caregiverId;

    @TableField(exist = false)
    private CaregiverInfo caregiver;

    @TableField("item_id")
    private Integer itemId;

    @TableField("care_time")
    private LocalDateTime careTime;

    @TableField("care_type")
    private Short careType;

    @TableField("care_content")
    private String careContent;

    private Short status;

    private String remark;

    private Short evaluation;

    @TableField("is_deleted")
    private Short isDeleted;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    public Long getCareId() {
        return careId;
    }

    public void setCareId(Long careId) {
        this.careId = careId;
    }

    public ElderInfo getElderly() {
        return elderly;
    }

    public void setElderly(ElderInfo elderly) {
        this.elderly = elderly;
    }

    public CaregiverInfo getCaregiver() {
        return caregiver;
    }

    public void setCaregiver(CaregiverInfo caregiver) {
        this.caregiver = caregiver;
    }

    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public LocalDateTime getCareTime() {
        return careTime;
    }

    public void setCareTime(LocalDateTime careTime) {
        this.careTime = careTime;
    }

    public Short getCareType() {
        return careType;
    }

    public void setCareType(Short careType) {
        this.careType = careType;
    }

    public String getCareContent() {
        return careContent;
    }

    public void setCareContent(String careContent) {
        this.careContent = careContent;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public Long getElderlyId() {
        return elderlyId;
    }

    public void setElderlyId(Long elderlyId) {
        this.elderlyId = elderlyId;
    }

    public Long getCaregiverId() {
        return caregiverId;
    }

    public void setCaregiverId(Long caregiverId) {
        this.caregiverId = caregiverId;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Short getEvaluation() {
        return evaluation;
    }

    public void setEvaluation(Short evaluation) {
        this.evaluation = evaluation;
    }

    public Short getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Short isDeleted) {
        this.isDeleted = isDeleted;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}